import logging
import paginate

from docutils.core import publish_parts

from pylons import request, response, session
from pylons import tmpl_context as c
from pylons.templating import render_mako as render

from formpaginate.lib.base import BaseController

log = logging.getLogger(__name__)

class FormController(BaseController):

    def index(self):
        page_nr = request.params.get('page_nr', 1)
        items = range(1,501)
        c.page = paginate.Page(items, page_nr=page_nr)
        return render('/pagetest.mako')
